Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor azure hypershift install timers #31

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

morenod
Copy link
Collaborator

@morenod morenod commented Oct 4, 2024

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

  • Added controlplane ready timer
  • Added total/delta timers for:
    • Install_time: time to complete the hypershift install command
    • Control Plane ready: time until OCP API is reachable
    • Cluster Ready: time until HCP is reported as ready
    • Workers Ready: time until all workers are ready

For every timer, now we xx_total for total time since hypershift cluster create is launched and xx_delta0 for the time since the previous stage.

This is to make dashboard creation easier, following dashboard has been also modified to use new timers

Execution example: https://grafana.rdu2.scalelab.redhat.com:3000/d/tQHfAzyVz/managed-services-install-timings?orgId=1&from=now-12h&to=now&var-datasource=bDQe-DMVz&var-uuid=618d98e5-14c6-4bfa-b5f1-65732efe6d4f&var-install_method=All&var-mgmt_cluster_name=All&var-version=All&var-group_by=uuid.keyword&var-installationpercentile=90

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

@morenod morenod force-pushed the control_plane_timers branch 4 times, most recently from b3908c4 to 4384ad0 Compare October 7, 2024 10:53
self.logging.error(err)
time.sleep(1)
continue
if any(item["message"] == "The hosted control plane is available" and item["status"] == "True" for item in cluster_status):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@morenod This status also reflects kube-apiserver Availability ? or just the hostedcontrolplane custom resource status.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified

@morenod morenod force-pushed the control_plane_timers branch 2 times, most recently from 1d7ac0a to f437f2a Compare October 17, 2024 15:19
Copy link
Collaborator

@mukrishn mukrishn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mukrishn mukrishn merged commit 103ab8d into cloud-bulldozer:main Oct 21, 2024
1 of 3 checks passed
@morenod morenod deleted the control_plane_timers branch October 23, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants